// DlgRectangleProperty.cpp : implementation file
//

#include "stdafx.h"
#include "HGLaserCutingSoftware.h"
#include "DlgRectangleProperty.h"
#include "afxdialogex.h"


// CDlgRectangleProperty dialog

IMPLEMENT_DYNAMIC(CDlgRectangleProperty, CDialogEx)

CDlgRectangleProperty::CDlgRectangleProperty(CWnd* pParent /*=NULL*/)
	: CDialogEx(CDlgRectangleProperty::IDD, pParent)
{

}

CDlgRectangleProperty::~CDlgRectangleProperty()
{
}

void CDlgRectangleProperty::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);
}


BEGIN_MESSAGE_MAP(CDlgRectangleProperty, CDialogEx)
	ON_BN_CLICKED(IDC_CHECK_CircularSet, &CDlgRectangleProperty::OnBnClickedCheckCircularset)
END_MESSAGE_MAP()


// CDlgRectangleProperty message handlers


void CDlgRectangleProperty::OnBnClickedCheckCircularset()
{
	// TODO: Add your control notification handler code here
	if (((CButton*)GetDlgItem(IDC_CHECK_CircularSet))->GetCheck())
	{
		GetDlgItem(IDC_EDIT_XRaduis)->EnableWindow(TRUE);
	}
	else
	{
		GetDlgItem(IDC_EDIT_XRaduis)->EnableWindow(FALSE);
	}
}
